package com.trade.service;

import java.util.List;

import com.trade.exception.BusinessException;
import com.trade.model.ProcurmentContract;

/**
 * @author Lin Yang
 * 
 */
public interface IProcurmentContractService {
    ProcurmentContract getProcurmentContractById(long id) throws BusinessException;

    void saveProcurmentContract(ProcurmentContract contract) throws BusinessException;

    List<ProcurmentContract> getContractLikeName(String name) throws BusinessException;

    List<ProcurmentContract> getApprovingContractLikeName(String name) throws BusinessException;

    List<ProcurmentContract> getVerifyingContractLikeName(String name) throws BusinessException;

    void approveContract(ProcurmentContract contract) throws BusinessException;

    void verifyContract(ProcurmentContract contract) throws BusinessException;
}
